﻿using System.Web;
using System.Web.Mvc;

namespace LS.Api
{
    /// <summary>
    /// 全局注册
    /// </summary>
    public class FilterConfig
    {
        /// <summary>
        /// 全局注册类型
        /// </summary>
        /// <param name="filters"></param>
        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
        {
            filters.Add(new HandleErrorAttribute());
        }
    }
}
